//app.js
App({
  onLaunch: function (){
    // 展示本地存储能力
    var logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    var that = this;
        wx.getSetting({
          success: function(res){
            if (res.authSetting['scope.userInfo']){
              
            }else {
              // 未授权，跳转到授权页面
                wx.navigateTo({
                url: '/pages/auth/auth',
              })
            }
          }
        })
      },
  globalData: {
    userInfo:null,
    openid:null
  }


})